package com.lili.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lili.pojo.ExamQuestionAnswer;
import com.lili.pojo.ExamRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lili.pojo.User;
import com.lili.vo.request.troop.QueryReqVO;
import com.lili.vo.request.officer.ToMarkExamReqVO;
import com.lili.vo.response.other.KeyValue;
import com.lili.vo.response.troop.RecordRespVO;
import com.lili.vo.response.officer.ScoreDetailRespVO;
import com.lili.vo.response.officer.ToMarExamRecordRespVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface ExamRecordMapper extends BaseMapper<ExamRecord> {

    IPage<RecordRespVO> selectPageList(IPage<RecordRespVO> page,@Param("vo") QueryReqVO vo);

    List<ScoreDetailRespVO> selectScoreList(@Param("examId") Integer examId, @Param("classesId") Integer classesId);

    IPage<ToMarExamRecordRespVO> selectMarkPageList(IPage<ToMarExamRecordRespVO> page, @Param("vo") ToMarkExamReqVO vo);

    List<KeyValue> selectKVS(@Param("vo") User user);

    void updateBatch(List<ExamQuestionAnswer> answerList);
}




